package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hm
 * @version 1.0
 * @date Created in 2024/7/9 10:58
 */

public interface DishService {
    /**
     * 新增菜品
     */
    void save(DishDTO dishDTO);

    PageResult page(DishPageQueryDTO dto);

    void deleteBatch(List<Long> ids);
    void startOrStop(Integer status, Long id);
    DishVO getById(long id);

    void update(DishDTO dishDTO);
    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);

}

